package great.project.dto;

import great.project.constant.ResultEnum;
import lombok.Data;

/**
 * <div  style="border:2px solid none;margin:20px;padding:15px;font-size:24px;text-align:center;color:aqua;">
 *
 *
 *
 *  </div>
 *
 * @author zhangshun
 * @date 2021/2/5 16:31
 */
@Data
public class ResponseResult {
	private Integer code;
	private String msg;

	public ResponseResult() {
	}

	public ResponseResult(ResultEnum resultEnum) {
		this.code = resultEnum.getCode();
		this.msg = resultEnum.getMessage();
	}

	public ResponseResult(Integer code, String msg) {
		this.code = code;
		this.msg = msg;
	}
}